package com.ITArmy.beans.Shows;

import com.ITArmy.beans.Blog;
import com.ITArmy.beans.User;

public class ReadBlog {
    private Blog blog;
    private User user;
    //评论数量
    private long commentNumber;
    private long likeNumber;
    //是否点赞过博客

    private boolean like;

    //是否关注过作者

    private boolean likeUser;
    //博客类型

    private String blogType;

    //是否收藏过

    private boolean Collection;

    @Override
    public String toString() {
        return "ReadBlog{" +
                "blog=" + blog +
                ", user=" + user +
                ", commentNumber=" + commentNumber +
                ", likeNumber=" + likeNumber +
                ", like=" + like +
                ", likeUser=" + likeUser +
                ", blogType='" + blogType + '\'' +
                ", Collection=" + Collection +
                '}';
    }

    public ReadBlog() {
    }

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public long getCommentNumber() {
        return commentNumber;
    }

    public void setCommentNumber(long commentNumber) {
        this.commentNumber = commentNumber;
    }

    public long getLikeNumber() {
        return likeNumber;
    }

    public void setLikeNumber(long likeNumber) {
        this.likeNumber = likeNumber;
    }

    public boolean isLike() {
        return like;
    }

    public void setLike(boolean like) {
        this.like = like;
    }

    public boolean isLikeUser() {
        return likeUser;
    }

    public void setLikeUser(boolean likeUser) {
        this.likeUser = likeUser;
    }

    public String getBlogType() {
        return blogType;
    }

    public void setBlogType(String blogType) {
        this.blogType = blogType;
    }

    public boolean isCollection() {
        return Collection;
    }

    public void setCollection(boolean collection) {
        Collection = collection;
    }

    public ReadBlog(Blog blog, User user, long commentNumber, long likeNumber, boolean like, boolean likeUser, String blogType, boolean collection) {
        this.blog = blog;
        this.user = user;
        this.commentNumber = commentNumber;
        this.likeNumber = likeNumber;
        this.like = like;
        this.likeUser = likeUser;
        this.blogType = blogType;
        Collection = collection;
    }
}
